const Router = require('koa-router');
const {appletAuth, wxAppletAuth} = require('../middleware/auth.middleware')
const {updateBikeCollectStatus} = require('../controller/appletBikeCollectController')

const appletBikeCollectRouter = new Router({prefix: '/applet/bikeCollect'});

appletBikeCollectRouter.post(`/collect/:bikeId`, appletAuth, updateBikeCollectStatus);

appletBikeCollectRouter.post(`/wxCollect/:bikeId`, wxAppletAuth, updateBikeCollectStatus);

module.exports = appletBikeCollectRouter;
